﻿@model IEnumerable<Category>

<table>
  <thead>
    <tr>
      <th>Category Name</th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    @foreach (var cat in Model)
    {
      <tr>
        <td> @cat.Name </td>
        <td> 
          @Html.ActionLink("Show", "Show", new { id = cat.Id }) | 
          @Html.ActionLink("Edit", "Edit", new { id = cat.Id }) |
          @Html.ActionLink("Delete", "Delete", new { id = cat.Id }, new { @class = "deleteLink" })
        </td>
      </tr>
    }
  </tbody>
</table>